// eslint-disable-next-line @typescript-eslint/no-var-requires
module.exports = {
    pluginOptions: {
      electronBuilder: {
        chainWebpackMainProcess: (config) => {
          config
          .plugin('define')
            .tap(args => {
              args[0]['global.GENTLY'] = false;
              return args
            })
        // Chain webpack config for electron main process only
        },
        nodeIntegration: true,
        preload: 'src/preload/index.ts',
        nodeModulesPath: ['./node_modules', '../../node_modules']
      },
    },
  // chainWebpack:(config)=>{
  //   config
  //   .plugin('define')
  //     .tap(args => {
  //       args[0]['global.GENTLY'] = false;
  //       console.log(args)
  //       return args
  //     })
  // }
}